package com.lw.yygh.config;

import org.apache.activemq.command.ActiveMQQueue;
import org.apache.activemq.command.ActiveMQTopic;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MqConfig {
    @Value( "${mytopic}" )
    private  String mytopic;
    @Bean
    public ActiveMQTopic queue(){
        return new ActiveMQTopic( mytopic );
    }
}
